package com.djj.nanny.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.djj.nanny.entity.ServiceItem;

import java.util.List;

public interface ServiceItemService {

    void createServiceItem(ServiceItem item);

    void updateServiceItem(ServiceItem item);

    ServiceItem getServiceItemById(Long id);

    Page<ServiceItem> getServiceItemsByPage(
     String title, Long categoryId, Integer status,
     Integer pageNum, Integer pageSize);

    void deleteServiceItem(Long id);

    void updateStatus(Long id, Integer status);

    void fillCategory(List<ServiceItem> items);

    List<ServiceItem> getServiceItemsByCategory(Long categoryId);

}